//
//  LSTextView.swift
//  新浪微博---01次
//
//  Created by 李宗帅 on 16/5/12.
//  Copyright © 2016年 LS. All rights reserved.
//

import UIKit

class LSTextView: UITextView {
    
    // 注意是 NSString
    var holdString: NSString?
    // Only override drawRect: if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func drawRect(rect: CGRect) {
        // Drawing code
        // 注意： font 一旦强制解包，就需要给 UITextView 设置一个font属性
        holdString?.drawAtPoint(CGPointMake(5, 8), withAttributes: [NSFontAttributeName: self.font!])
    }
    
    
}